package com.xiaoge.controller;

import com.xiaoge.service.TestTransactionalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author <a href="mailto:1330137071@qq.com">Zhang Xiao</a>
 * @since
 */
@RestController
@RequestMapping
public class TestTransactionalController {

	@Autowired
	private TestTransactionalService testTransactionalService;

	@GetMapping("/test1")
	@ResponseBody
	public void test() {
		testTransactionalService.test();
	}

}
